home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Hardware / AV Tools / VUMeters / Sources / Makefile next >
Encoding:
Makefile  |  1993-10-27  |  2.4 KB  |  74 lines  |  [TEXT/MPS ]

  1. #############################
  2. # Makefile for SoundMonitor #
  3. #############################
  4.  
  5. Top = :
  6. Objects = {Top}
  7. SMInclude = {Top}
  8. SMDSPInclude = {SMInclude}
  9. SMResource = {Top}
  10. SMRelease = {Top}
  11. SMReleaseLib = {SMRelease}
  12. SMReleaseInclude = {SMRelease}
  13. SMReleaseExample = {SMRelease}
  14. SMReleaseResource = {SMRelease}SoundMonitor
  15. SMThinkProject = {Top}VUMeters.π.rsrc
  16. Copts = -d ccompile -b -r -o {Objects} -i {SMInclude} -i {CIncludes} -i {DSP3210_Includes} -mc68020 -w
  17.  
  18. ##########################
  19. # SoundMonitor 3210 code #
  20. ##########################
  21.  
  22. DSPSoundMonitorSrcDir = {TOP}
  23.  
  24. {SMResource}SoundMonitorCode.rsrc ƒƒ {DSPSoundMonitorSrcDir}PowerMonitor.s
  25.     Set OldBOMIICIncludes "{BOMIICIncludes}"
  26.     Set BOMIICIncludes "{BOMIICIncludes},{SMDSPInclude}"
  27.     Export BOMIICIncludes
  28.     d32asm {DSPSoundMonitorSrcDir}PowerMonitor.s {SMResource}SoundMonitorCode.rsrc
  29.     derez {SMResource}SoundMonitorCode.rsrc | rez -a -o {SMThinkProject}
  30.     Set BOMIICIncludes "{OldBOMIICIncludes}"
  31.     Export BOMIICIncludes
  32.     setfile -t rsrc -c RSED {SMResource}SoundMonitorCode.rsrc
  33.  
  34. {SMResource}SoundMonitorCode.rsrc ƒƒ {DSPSoundMonitorSrcDir}MaxMonitor.s
  35.     Set OldBOMIICIncludes "{BOMIICIncludes}"
  36.     Set BOMIICIncludes "{BOMIICIncludes},{SMDSPInclude}"
  37.     Export BOMIICIncludes
  38.     d32asm {DSPSoundMonitorSrcDir}MaxMonitor.s {SMResource}SoundMonitorCode.rsrc
  39.     derez {SMResource}SoundMonitorCode.rsrc | rez -a -o {SMThinkProject}
  40.     Set BOMIICIncludes "{OldBOMIICIncludes}"
  41.     Export BOMIICIncludes
  42.     setfile -t rsrc -c RSED {SMResource}SoundMonitorCode.rsrc
  43.  
  44. ###########################
  45. # SoundMonitor Mac C code #
  46. ###########################
  47.  
  48. MacSoundMonitorSrcDir = {TOP}Src.Mac:
  49.  
  50. {Objects}SoundMonitor.c.o ƒ {MacSoundMonitorSrcDir}SoundMonitor.c
  51.     C {MacSoundMonitorSrcDir}SoundMonitor.c {Copts}
  52.  
  53. #####################
  54. # SoundMonitor Tool #
  55. #####################
  56.  
  57. SoundMonitor ƒ {Objects}SoundMonitor.c.o {SMResource}SoundMonitorCode.rsrc
  58.     duplicate -y {Objects}SoundMonitor.c.o {SMReleaseLib}
  59.     duplicate -y {SMResource}SoundMonitorCode.rsrc {SMReleaseResource}
  60.     duplicate -y {SMInclude}SoundMonitor: {SMReleaseInclude}
  61.  
  62. # tester
  63. TestMonitor ƒ SoundMonitor TestMonitor.c
  64.     C TestMonitor.c {Copts}
  65.     link -d -c 'MPS ' -t MPST -mf ∂
  66.         "{CLibraries}"StdClib.o ∂
  67.         "{CLibraries}"Math.o ∂
  68.         "{Libraries}"Runtime.o ∂
  69.         "{Libraries}"Interface.o ∂
  70.         {Objects}TestMonitor.c.o {Objects}SoundMonitor.c.o ∂
  71.         -o TestMonitor
  72.     Derez {SMResource}SoundMonitorCode.rsrc | ∂
  73.         Rez -a -o TestMonitor
  74.